package com.javacoo.xservice.base.support.handler.config;

import java.util.Map;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 接口编码参数配置
 * <p>说明:</p>
 * <li>格式=> app.config.encode.encodeParamMap[(版本号_)接口名称]=['编码参数名1'],['编码参数名2']...</li>
 * @author DuanYong
 * @since 2017年7月12日上午10:04:26
 */
@Configuration
@ConfigurationProperties(prefix = EncodeConfig.PREFIX)
@ConditionalOnProperty(prefix = EncodeConfig.PREFIX, value = EncodeConfig.ENABLED, matchIfMissing = true)
public class EncodeConfig {
    public static final String PREFIX = "app.config.encode";
    public static final String ENABLED = "enabled";
    /**是否可用*/
    private String enabled = ENABLED;
	/**接口编码参数配置Map*/
	private Map<String, String> encodeParamMap;

    public String getEnabled() {
        return enabled;
    }

    public void setEnabled(String enabled) {
        this.enabled = enabled;
    }

    public Map<String, String> getEncodeParamMap() {
        return encodeParamMap;
    }

    public void setEncodeParamMap(Map<String, String> encodeParamMap) {
        this.encodeParamMap = encodeParamMap;
    }
}
